package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Employee;
import cn.wolfcode.rbac.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee employee);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll(QueryObject qo);

    int updateByPrimaryKey(Employee employee);

    int getCount(QueryObject qo);

    void deleteRelation(Long id);

    void saveRelation(@Param("eid")Long eid, @Param("rid") Long rid);

    Employee selectByInfo(@Param("username") String username, @Param("password") String password);
}